<hgroup class="page-head">
	<h1><span>Góc Tri Ân</span></h1>
</hgroup>
<!-- ending of hgroup of the website -->
<div id="container" class="clearfix">
	<?php
	if (!empty($this->Items)):
		$config = new Zendvn_Controller_Config(array('module'=>'admin',
				'fileConfig'=>'patient-testimonial.ini'));
		$pictureConfig = $config->getConfig('patient');
	?>
	<div id="content" class="full-width">
		<div id="testimonials-template">
			<ul class="patients clearfix">
			<?php 
			foreach ($this->Items as $k => $v):
				$name = Zendvn_Filter_Filter::filterContent($v['name'], 'filter');
				$content = Zendvn_Filter_Filter::filterContent($v['content'], 'filter');
				$created = date('d/m/Y', strtotime($v['created']));
				
				if(file_exists($pictureConfig['thumbDir'] . '/' . $v['avatar']) &&  !empty($v['avatar'])){
					$pictureUrl 	= $pictureConfig['thumbUrl'] . '/' . $v['avatar'];
					$pictureUrlOrginal = $pictureConfig['uploadUrl'] . '/' . $v['avatar'];
				}else{
					$pictureUrlOrginal = $pictureUrl = FILE_URL . '/images/no-avatar-thumb.jpg';
				}
			?>
				<li class="clearfix">
					<div class="imgbox">
						<img width="80" height="80"
							src="<?php echo $pictureUrl?>"
							class="attachment-testimonial-thumb wp-post-image" alt=<?php echo $name?>>
					</div>
					<div class="detail">
						<blockquote>
							<p><?php echo $content?></p>
						</blockquote>
						<p class="author">
							<a href="#brian" class="author"><?php echo $name?>,</a> <?php echo $created?>
						</p>
					</div>
				</li>
			<?php endforeach;?>
			</ul>
			<?php 
				$arrParam = array(
						'module' => 'default',
						'controller' => 'index',
						'action' => 'patients-testimonial',
						'router' => 'patients-testimonial-page'
				);
				echo $this->paginationControl($this->panigator,'Sliding','paning.php',array('arrParam'=>$arrParam));
			?>
		</div>


	</div>
	<?php endif;?>
	<!-- END of CONTENT -->
</div>